package com.tac.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel
public class Order {
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("价格")
    private BigDecimal price;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty("订单状态 0待付款 1待收货 2待评价 3已完成 4已取消")
    private Integer status;
    @ApiModelProperty("备注")
    private String remarks;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("省份")
    private String province;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("区域")
    private String area;
    @ApiModelProperty("街道")
    private String street;
    @ApiModelProperty("数量")
    private Integer quantity;


    private List<OrderProduct> orderProducts;
}
